package com.xinlianshiye.im.service

import com.xinlianshiye.im.bean.FriendApplication
import com.xinlianshiye.im.bean.User
import com.xinlianshiye.im.response.UserViews

interface FriendService {
    fun create(friendApplication: FriendApplication?)

    /**
     * @Author zw
     * @Description 查询根据名称模糊查询好友列表
     * @Date 15:52 2019/8/28
     * @Param
     */
    fun searchFriendByName(userId: Int?, name: String?): List<User>

    /**
     * 获取还不是我的好友的用户
     * @param userId
     * @return
     */
    fun listNotFriend(userId: Int?): List<UserViews>

    /**
     * @Author zw
     * @Description 删除好友和聊天
     * @Date 16:33 2019/8/28
     * @Param
     */
    fun delete(userId: Int?, friendId: Int?)
}